!include <win32.mak>

PRJNAME=cisql

#LIB_FILES= KERNEL32.lib ADVAPI32.lib USER32.lib MSVCRT.lib
LIB_FILES= KERNEL32.lib MSVCRT.lib libct.lib libcs.lib

INCLUDE=$(INCLUDE);$(SYBASE)\$(SYBASE_OCS)\include
LIB=$(LIB);$(SYBASE)\$(SYBASE_OCS)\lib


CPP_FILES= main.cpp

OBJS= $(CPP_FILES:.cpp=.obj)

all: x_exe


.cpp.obj:
	$(cc) -Ox $(cflags) $(cvarsdll) -DSTRICT -YX -DNODEBUG $<

x_exe: $(OBJS)
    $(link) /RELEASE /NODEFAULTLIB /EXETYPE:DYNAMIC /SUBSYSTEM:CONSOLE -out:$(PRJNAME).exe $(OBJS) $(LIB_FILES)

clean:
    -del *.obj
	-del *.dll
	-del *.exe
	-del *.pch
	-del *.exp
	-del *.lib
